﻿<div ng-controller="settingController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li class="active">商城交易赠送马力</li>
            </ol>
        </div>
    </div>
    <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="mallshoppingSetting.validateOptions" role="form" novalidate>
        <div class="form-group form-group-sm">
            <label class="col-sm-4 control-label">购买：￥1～￥100（含100）</label>
            <label class="col-sm-2 control-label">增加马力值</label>
            <div class="col-sm-2">
                <input type="number" name="give_horse_power_1" min="0" class="form-control input-sm" ng-model="model.give_horse_power_1" required
                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-4 control-label">购买：￥100～￥200（含200）</label>
            <label class="col-sm-2 control-label">增加马力值</label>
            <div class="col-sm-2">
                <input type="number" name="give_horse_power_2" min="0" class="form-control input-sm" ng-model="model.give_horse_power_2" required
                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-4 control-label">购买：￥200～￥500（含500）</label>
            <label class="col-sm-2 control-label">增加马力值</label>
            <div class="col-sm-2">
                <input type="number" name="give_horse_power_3" min="0" class="form-control input-sm" ng-model="model.give_horse_power_3" required
                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-4 control-label">购买：￥500～￥1000（含1000）</label>
            <label class="col-sm-2 control-label">增加马力值</label>
            <div class="col-sm-2">
                <input type="number" name="give_horse_power_4" min="0" class="form-control input-sm" ng-model="model.give_horse_power_4" required
                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-4 control-label">购买：￥1000～￥N</label>
            <label class="col-sm-2 control-label">增加马力值</label>
            <div class="col-sm-2">
                <input type="number" name="give_horse_power_5" min="0" class="form-control input-sm" ng-model="model.give_horse_power_5" required
                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
            </div>
        </div>

        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button type="submit" w5c-form-submit="saveTokenMallShoppingSetting()" class="btn btn-primary btn-sm" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 保存
                </button>
            </div>
        </div>

    </form>
</div>
